Optimal. Leaf size=113 \[ \frac {-A b+a B}{2 b (b d-a e) (a+b x)^2}-\frac {B d-A e}{(b d-a e)^2 (a+b x)}-\frac {e (B d-A e) \log (a+b x)}{(b d-a e)^3}+\frac {e (B d-A e) \log (d+e x)}{(b d-a e)^3} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.06, antiderivative size = 113, normalized size of antiderivative = 1.00, number of steps
used = 2, number of rules used = 1, integrand size = 20, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.050, Rules used = {78}
\begin {gather*} -\frac {A b-a B}{2 b (a+b x)^2 (b d-a e)}-\frac {B d-A e}{(a+b x) (b d-a e)^2}-\frac {e \log (a+b x) (B d-A e)}{(b d-a e)^3}+\frac {e (B d-A e) \log (d+e x)}{(b d-a e)^3} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 78
Rubi steps
\begin {align*} \int \frac {A+B x}{(a+b x)^3 (d+e x)} \, dx &=\int \left (\frac {A b-a B}{(b d-a e) (a+b x)^3}+\frac {b (B d-A e)}{(b d-a e)^2 (a+b x)^2}+\frac {b e (-B d+A e)}{(b d-a e)^3 (a+b x)}-\frac {e^2 (-B d+A e)}{(b d-a e)^3 (d+e x)}\right ) \, dx\\ &=-\frac {A b-a B}{2 b (b d-a e) (a+b x)^2}-\frac {B d-A e}{(b d-a e)^2 (a+b x)}-\frac {e (B d-A e) \log (a+b x)}{(b d-a e)^3}+\frac {e (B d-A e) \log (d+e x)}{(b d-a e)^3}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.05, size = 103, normalized size = 0.91 \begin {gather*} \frac {\frac {(-A b+a B) (b d-a e)^2}{b (a+b x)^2}+\frac {2 (b d-a e) (-B d+A e)}{a+b x}+2 e (-B d+A e) \log (a+b x)+2 e (B d-A e) \log (d+e x)}{2 (b d-a e)^3} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.10, size = 111, normalized size = 0.98
method | result | size |
default | \(-\frac {-A b +B a}{2 \left (a e -b d \right ) b \left (b x +a \right )^{2}}+\frac {A e -B d}{\left (a e -b d \right )^{2} \left (b x +a \right )}-\frac {\left (A e -B d \right ) e \ln \left (b x +a \right )}{\left (a e -b d \right )^{3}}+\frac {\left (A e -B d \right ) e \ln \left (e x +d \right )}{\left (a e -b d \right )^{3}}\) | \(111\) |
norman | \(\frac {\frac {\left (A \,b^{2} e -b^{2} B d \right ) x}{b \left (a^{2} e^{2}-2 a b d e +d^{2} b^{2}\right )}+\frac {3 A a \,b^{2} e -A \,b^{3} d -B \,a^{2} b e -B a \,b^{2} d}{2 b^{2} \left (a^{2} e^{2}-2 a b d e +d^{2} b^{2}\right )}}{\left (b x +a \right )^{2}}+\frac {e \left (A e -B d \right ) \ln \left (e x +d \right )}{a^{3} e^{3}-3 a^{2} b d \,e^{2}+3 a \,b^{2} d^{2} e -b^{3} d^{3}}-\frac {e \left (A e -B d \right ) \ln \left (b x +a \right )}{a^{3} e^{3}-3 a^{2} b d \,e^{2}+3 a \,b^{2} d^{2} e -b^{3} d^{3}}\) | \(222\) |
risch | \(\frac {\frac {b \left (A e -B d \right ) x}{a^{2} e^{2}-2 a b d e +d^{2} b^{2}}+\frac {3 A a b e -A \,b^{2} d -B \,a^{2} e -B a b d}{2 b \left (a^{2} e^{2}-2 a b d e +d^{2} b^{2}\right )}}{\left (b x +a \right )^{2}}-\frac {e^{2} \ln \left (b x +a \right ) A}{a^{3} e^{3}-3 a^{2} b d \,e^{2}+3 a \,b^{2} d^{2} e -b^{3} d^{3}}+\frac {e \ln \left (b x +a \right ) B d}{a^{3} e^{3}-3 a^{2} b d \,e^{2}+3 a \,b^{2} d^{2} e -b^{3} d^{3}}+\frac {e^{2} \ln \left (-e x -d \right ) A}{a^{3} e^{3}-3 a^{2} b d \,e^{2}+3 a \,b^{2} d^{2} e -b^{3} d^{3}}-\frac {e \ln \left (-e x -d \right ) B d}{a^{3} e^{3}-3 a^{2} b d \,e^{2}+3 a \,b^{2} d^{2} e -b^{3} d^{3}}\) | \(302\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] Leaf count of result is larger than twice the leaf count of optimal. 253 vs.
\(2 (121) = 242\).
time = 0.31, size = 253, normalized size = 2.24 \begin {gather*} -\frac {{\left (B d e - A e^{2}\right )} \log \left (b x + a\right )}{b^{3} d^{3} - 3 \, a b^{2} d^{2} e + 3 \, a^{2} b d e^{2} - a^{3} e^{3}} + \frac {{\left (B d e - A e^{2}\right )} \log \left (x e + d\right )}{b^{3} d^{3} - 3 \, a b^{2} d^{2} e + 3 \, a^{2} b d e^{2} - a^{3} e^{3}} - \frac {B a^{2} e - 3 \, A a b e + {\left (B a b + A b^{2}\right )} d + 2 \, {\left (B b^{2} d - A b^{2} e\right )} x}{2 \, {\left (a^{2} b^{3} d^{2} - 2 \, a^{3} b^{2} d e + a^{4} b e^{2} + {\left (b^{5} d^{2} - 2 \, a b^{4} d e + a^{2} b^{3} e^{2}\right )} x^{2} + 2 \, {\left (a b^{4} d^{2} - 2 \, a^{2} b^{3} d e + a^{3} b^{2} e^{2}\right )} x\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 347 vs.
\(2 (121) = 242\).
time = 1.07, size = 347, normalized size = 3.07 \begin {gather*} -\frac {2 \, B b^{3} d^{2} x + {\left (B a b^{2} + A b^{3}\right )} d^{2} + {\left (2 \, A a b^{2} x - B a^{3} + 3 \, A a^{2} b\right )} e^{2} - 2 \, {\left (2 \, A a b^{2} d + {\left (B a b^{2} + A b^{3}\right )} d x\right )} e - 2 \, {\left ({\left (A b^{3} x^{2} + 2 \, A a b^{2} x + A a^{2} b\right )} e^{2} - {\left (B b^{3} d x^{2} + 2 \, B a b^{2} d x + B a^{2} b d\right )} e\right )} \log \left (b x + a\right ) + 2 \, {\left ({\left (A b^{3} x^{2} + 2 \, A a b^{2} x + A a^{2} b\right )} e^{2} - {\left (B b^{3} d x^{2} + 2 \, B a b^{2} d x + B a^{2} b d\right )} e\right )} \log \left (x e + d\right )}{2 \, {\left (b^{6} d^{3} x^{2} + 2 \, a b^{5} d^{3} x + a^{2} b^{4} d^{3} - {\left (a^{3} b^{3} x^{2} + 2 \, a^{4} b^{2} x + a^{5} b\right )} e^{3} + 3 \, {\left (a^{2} b^{4} d x^{2} + 2 \, a^{3} b^{3} d x + a^{4} b^{2} d\right )} e^{2} - 3 \, {\left (a b^{5} d^{2} x^{2} + 2 \, a^{2} b^{4} d^{2} x + a^{3} b^{3} d^{2}\right )} e\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 558 vs.
\(2 (92) = 184\).
time = 1.22, size = 558, normalized size = 4.94 \begin {gather*} - \frac {e \left (- A e + B d\right ) \log {\left (x + \frac {- A a e^{3} - A b d e^{2} + B a d e^{2} + B b d^{2} e - \frac {a^{4} e^{5} \left (- A e + B d\right )}{\left (a e - b d\right )^{3}} + \frac {4 a^{3} b d e^{4} \left (- A e + B d\right )}{\left (a e - b d\right )^{3}} - \frac {6 a^{2} b^{2} d^{2} e^{3} \left (- A e + B d\right )}{\left (a e - b d\right )^{3}} + \frac {4 a b^{3} d^{3} e^{2} \left (- A e + B d\right )}{\left (a e - b d\right )^{3}} - \frac {b^{4} d^{4} e \left (- A e + B d\right )}{\left (a e - b d\right )^{3}}}{- 2 A b e^{3} + 2 B b d e^{2}} \right )}}{\left (a e - b d\right )^{3}} + \frac {e \left (- A e + B d\right ) \log {\left (x + \frac {- A a e^{3} - A b d e^{2} + B a d e^{2} + B b d^{2} e + \frac {a^{4} e^{5} \left (- A e + B d\right )}{\left (a e - b d\right )^{3}} - \frac {4 a^{3} b d e^{4} \left (- A e + B d\right )}{\left (a e - b d\right )^{3}} + \frac {6 a^{2} b^{2} d^{2} e^{3} \left (- A e + B d\right )}{\left (a e - b d\right )^{3}} - \frac {4 a b^{3} d^{3} e^{2} \left (- A e + B d\right )}{\left (a e - b d\right )^{3}} + \frac {b^{4} d^{4} e \left (- A e + B d\right )}{\left (a e - b d\right )^{3}}}{- 2 A b e^{3} + 2 B b d e^{2}} \right )}}{\left (a e - b d\right )^{3}} + \frac {3 A a b e - A b^{2} d - B a^{2} e - B a b d + x \left (2 A b^{2} e - 2 B b^{2} d\right )}{2 a^{4} b e^{2} - 4 a^{3} b^{2} d e + 2 a^{2} b^{3} d^{2} + x^{2} \cdot \left (2 a^{2} b^{3} e^{2} - 4 a b^{4} d e + 2 b^{5} d^{2}\right ) + x \left (4 a^{3} b^{2} e^{2} - 8 a^{2} b^{3} d e + 4 a b^{4} d^{2}\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.92, size = 229, normalized size = 2.03 \begin {gather*} -\frac {{\left (B b d e - A b e^{2}\right )} \log \left ({\left | b x + a \right |}\right )}{b^{4} d^{3} - 3 \, a b^{3} d^{2} e + 3 \, a^{2} b^{2} d e^{2} - a^{3} b e^{3}} + \frac {{\left (B d e^{2} - A e^{3}\right )} \log \left ({\left | x e + d \right |}\right )}{b^{3} d^{3} e - 3 \, a b^{2} d^{2} e^{2} + 3 \, a^{2} b d e^{3} - a^{3} e^{4}} - \frac {B a b^{2} d^{2} + A b^{3} d^{2} - 4 \, A a b^{2} d e - B a^{3} e^{2} + 3 \, A a^{2} b e^{2} + 2 \, {\left (B b^{3} d^{2} - B a b^{2} d e - A b^{3} d e + A a b^{2} e^{2}\right )} x}{2 \, {\left (b d - a e\right )}^{3} {\left (b x + a\right )}^{2} b} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 1.26, size = 228, normalized size = 2.02 \begin {gather*} -\frac {\frac {A\,b^2\,d+B\,a^2\,e-3\,A\,a\,b\,e+B\,a\,b\,d}{2\,b\,\left (a^2\,e^2-2\,a\,b\,d\,e+b^2\,d^2\right )}-\frac {b\,x\,\left (A\,e-B\,d\right )}{a^2\,e^2-2\,a\,b\,d\,e+b^2\,d^2}}{a^2+2\,a\,b\,x+b^2\,x^2}-\frac {2\,e\,\mathrm {atanh}\left (\frac {\left (\frac {a^3\,e^3-a^2\,b\,d\,e^2-a\,b^2\,d^2\,e+b^3\,d^3}{a^2\,e^2-2\,a\,b\,d\,e+b^2\,d^2}+2\,b\,e\,x\right )\,\left (a^2\,e^2-2\,a\,b\,d\,e+b^2\,d^2\right )}{{\left (a\,e-b\,d\right )}^3}\right )\,\left (A\,e-B\,d\right )}{{\left (a\,e-b\,d\right )}^3} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________